package com.tellhow.monitorserverqh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tellhow.monitorserverqh.model.SmsModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author:gnplum
 * @Date: 2023/5/6  10:52
 * @Version 1.0
 */
@Mapper
public interface SmsMapper extends BaseMapper {

    /**
     * @description:监控异常记录查询
     * @author: gnplum
     * @date: 2023/1/10 15:24
     * @param group_id :
     * @return : void
     **/
    List<SmsModel> querySendSmsInfos(@Param("group_id") String group_id);

    /**
     * @description:批量短信插入监控异常记录
     * @author: gnplum
     * @date: 2023/1/10 15:24
     * @param list :
     * @return : void
     **/
    void insertSms(@Param("list") List<SmsModel> list);

    /**
     * @description:批量短信插入监控异常记录
     * @author: gnplum
     * @date: 2023/1/10 15:24
     * @param sms_id :
     * @return : void
     **/
    int searchIsSendSms(@Param("sms_id") String sms_id);

}
